    Page({
      //为页面提供数据唯一标准
      data: {
        msg: '数据',
        msg1: '页面维护中',
        changeclass: 'todo',
        todos: [
          { name: 'java', completed: false },
          { name: 'php', completed: true },
          { name: 'vue', completed: false },
          { name: 'javascript', completed: true },
          { name: 'phpstudy', completed: false },
          { name: 'vuex', completed: false }
        ],
        testmsg: '程序正在执行中'
      },
      type(e) {
        console.log("我是按钮")
        console.log(e.target.dataset)
        console.log(this)
        //
      },
      typeof () {
        console.log('我是box')
      },
      change: function (e) {
        console.log(e)
        this.setData({
          testmsg: e.detail.value
        })
        console.log(this.data.testmsg)
      }
})
